package com.dems.service.org;

import com.dems.dao.dataobject.User;
import com.dems.domain.org.*;

import java.util.List;

/**
 * 组织架构服务
 * 1、组织架构
 * 2、员工
 * 3、角色
 */
public interface OrgService {

    DeptDto saveDept(DeptDto deptDto, User loanassistUser);

    List<DeptDto> deptList(DeptDto deptDto, User loanassistUser);

    List<DeptStaffDto> deptStaffList(DeptStaffDto deptStaffDto, User loanassistUser);

    Integer deleteDept(DeptDto deptDto, User loanassistUser);

    List<DeptStaffDto> saveDeptStaff(List<DeptStaffDto> deptStaffDtoList, User loanassistUser);

    Integer deleteDeptStaff(DeptStaffDto deptStaffDto, User loanassistUser);

    List<StaffDto> staffList(StaffDto staffDto, User loanassistUser);

    List<RoleDto> roleList(RoleDto roleDto, User loanassistUser);

    RoleDto saveRole(RoleDto roleDto, User loanassistUser);

    List<StaffRoleDto> staffRoleList(RoleDto roleDto, User loanassistUser);

    Integer saveStaffRole(List<StaffRoleDto> staffRoleDtoList, User loanassistUser);

    Integer deleteStaffRole(StaffRoleDto staffRoleDto, User loanassistUser);

    List<MenuDto> menuList(MenuDto menuDto, User loanassistUser);

    MenuDto saveMenu(MenuDto menuDto, User loanassistUser);

    List<String> userMenuList(MenuDto menuDto, User loanassistUser);

    Integer saveDeptStaffRole(DeptStaffDto deptStaffDto, User loanassistUser);
}
